/*
  距离下一次保养记录页面
*/
import { request } from "./request";
// headsn下拉框
export function getHeadSNSelect  (params) {
  return request({
    url: "/Mainte/Headers/SNs",
    params: {
      ...params,
    },
  });
}
//年份下拉框
export function getYearSelect(params) {
  return request({
    url: "/Mainte/Header/MainteYears/AllYears",
    params: {
      ...params,
    },
  });
}
//headsn下拉框搜索
export function getHeadSNSearch  (params) {
    // ${params.fuzzySNPart}
  return request({
      url:`/Mainte/Headers/SNs/Search`,
      params
    //   params:{
    //     ...params
    //   },
     
  })
}
//获取周月季年
export function getHeadSNMainteData  (params) {
  return request({
    url: `/Mainte/Header/SN/${params.headSN||'non'}/All/MainteInfoRecord`,
    params: params,
  });
}
//周保养
export function getWeekHeadSN(params) {
  return request({
    url: `/Mainte/Header/SN/${params.headSN}/Week/MainteInfoRecord`,
    params: params,
  });
}
